package lab02.test35;

/**
 * Created by JAVA on 2017/12/7.
 */
public class EmployeeDemo {
    public static void main(String[] args) {
        Manager m=new Manager("张三",10000);
        Salesman s=new Salesman("李四",200,50,80);
        Worker w=new Worker("王五",28,80);
        System.out.println("经理"+m.getNamne()+"的工资为："+m.computeSalary());
        System.out.println("销售人员"+s.getNamne()+"的工资为："+s.computeSalary());
        System.out.println("工人"+w.getNamne()+"的工资为："+w.computeSalary());
    }

}
